package ddbs;

public class DataSet {
    Peer peer = null;
    String table = null;
    String limit[] = null;
    String fileds[] = null;
    String exfileds[] = null;

    private void showArray(String name, String arr[]) {
        System.out.print(name + " :");
        if (arr == null)
            System.out.println("null");
        else {
            for (int i = 0; i < arr.length; i++) {
                System.out.print(arr[i] + ", ");
            }
            System.out.println();
        }
    }

    void show() {
        System.out.println("Table=" + table);
        System.out.println("Peer=" + (peer == null ? "null" : peer.getId()));
        showArray("limit", limit);
        showArray("fileds", fileds);
        showArray("exfileds", exfileds);
    }
}
